package org.mspring.platform.support.sitemap;

/**
 * How frequently the page is likely to change. This value provides general information to search engines and may not correlate exactly to how often they crawl the page. The value {@link #ALWAYS} should be used to describe documents that change each time they are accessed. The value {@link #NEVER} should be used to describe archived URLs.
 *
 * <p>
 * Please note that the value of this tag is considered a <em>hint</em> and not a command. Even though search engine crawlers may consider this information when making decisions, they may crawl pages marked {@link #HOURLY} less frequently than that, and they may crawl pages marked {@link #YEARLY} more frequently than that. Crawlers may periodically crawl pages marked {@link #NEVER} so that they can handle unexpected changes to those pages.
 * </p>
 */
public enum ChangeFreq {
    ALWAYS, HOURLY, DAILY, WEEKLY, MONTHLY, YEARLY, NEVER;
    String lowerCase;

    private ChangeFreq() {
        lowerCase = this.name().toLowerCase();
    }

    @Override
    public String toString() {
        return lowerCase;
    }
}
